package com.heimdallr.rbac.user.dao;


import com.heimdallr.rbac.permission.entity.GroupEntity;
import com.heimdallr.rbac.permission.entity.UserEntity;

import java.util.List;
import java.util.Map;

public interface UserDao {


	List<UserEntity> getUserList(Map<String, Object> paraMap);

	List<GroupEntity> getAllUserGroups();

	GroupEntity getGroupEntityById(int id);

	UserEntity getByUserName(String userName);

	void saveUserEntity(UserEntity userEntity);

	int updateUserEntity(String username, String nickname, String password);

    int uptUserGroup(String userName, Integer groupId);
}
